#ifndef CHINESH
#define CHINESH

class chinese
{
    private:
	int getbit(unsigned char c,int n)
	{
	  return((c>>n)&1);
	}

    public:
	virtual int openhzk(char c);
	virtual int close(void);
	virtual int puthz16(int,int,int,int,char*);
	virtual int puthz16a(int,int,int,int,char*);
	virtual int puthz16_new(int,int,int,int,char *,int);
	virtual int puthz24(int,int,int,int,char*);
	virtual int puthz24a(int,int,int,int,char*);
	virtual int puthz24_x(int,int,int,int,char*,int,int);
	virtual int puthz24_new(int,int,int,int,char*,int,int);
	virtual int puthz40(int,int,int,int,char*,int,int);
	virtual int puthz48(int,int,int,int,char *,int,int );
	virtual int puthz24rat(int x,int y,int z,int color,char *p,char d,int angle);
	virtual int puthz24ext(int x,int y,int z,int color,int m,int n,char *p);
};
#endif